In [29]:
import glob
from IPython.display import Audio, display, HTML
import matplotlib.pyplot as plt
import os
In [ ]:
def show_generated_examples(path):
    for i, gen_path in enumerate(glob.glob(os.path.join(path, '*_gen.wav'))):
        if i != 0:
            display(HTML('<hr style="border:1px solid black;">'))
        ref_path = gen_path.replace('_gen', '_ref')
        display(HTML('<p>Generated example %d</p>' % (i + 1)))
        display(Audio(filename=gen_path))
        display(HTML('<p>Test set example %d</p>' % (i + 1)))
        display(Audio(filename=ref_path))

show_generated_examples('generated/checkpoint_latest/dev')

Generated example 1

Your browser does not support the audio element.

Test set example 1

Your browser does not support the audio element.

Generated example 2

Your browser does not support the audio element.

Test set example 2

Your browser does not support the audio element.

Generated example 3

Your browser does not support the audio element.

Test set example 3

Your browser does not support the audio element.

Generated example 4

Your browser does not support the audio element.

Test set example 4

Your browser does not support the audio element.

Generated example 5

Your browser does not support the audio element.

Test set example 5

Your browser does not support the audio element.
In [ ]: